/**
 * This file is part of the CAKIS project.
 * 
 * Copyright (c) 2009-2010 - Florian Arndt, Christian Kerl
 * 
 * @license GNU Lesser General Public License v3 <http://www.opensource.org/licenses/lgpl-3.0.html>
 * @since   04.05.2010
 * @version SVN: $Id$
 */

package org.cakis.client.commands;

import javax.microedition.lcdui.Command;

import org.cakis.client.CakisMIDlet;

/**
 * BarcodeOfflineScanCommand
 *
 * @author Florian Arndt
 */
public class BarcodeOfflineScanCommand extends AbstractCommand {
	public CakisMIDlet midlet;
	
	public BarcodeOfflineScanCommand(CakisMIDlet m) {
		super("Offline scannen", Command.OK, 3);
		this.midlet = m;
	}
	
	public void execute() {
		midlet.getOfflineHandler().setFlag(true);
		midlet.playerStart();
	}

}
